var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = (function () {
    function e() {}
    return (
        (e.copy2DArray = function (e) {
            for (var t = [], o = 0; o < e.length; o++) t.push(e[o].concat());
            return t;
        }),
        (e.fisherYatesShuffle = function (e) {
            for (var t = e.length; t; ) {
                var o = Math.floor(Math.random() * t--),
                    n = e[t];
                (e[t] = e[o]), (e[o] = n);
            }
            return e;
        }),
        (e.confound = function (e) {
            return e.slice().sort(function () {
                return Math.random() - 0.5;
            });
        }),
        (e.flattening = function (e) {
            for (
                ;
                e.some(function (e) {
                    return Array.isArray(e);
                });

            )
                e = [].concat.apply([], e);
            return e;
        }),
        (e.combineArrays = function (e, t) {
            return __spreadArrays(e, t);
        }),
        (e.getRandomValueInArray = function (e) {
            return e[Math.floor(Math.random() * e.length)];
        }),
        e
    );
})();
o.default = n;
